home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gBackgroundSound, gBackgroundVolume, gFragment1, gFragment2, gFragment3, gFragment4, gFragmentCast
- repeat with i = 1 to 48
- puppetSprite(i, 0)
- end repeat
- updateStage()
- set gFragmentCast to the number of cast "Fragment 1"
- puppetSprite(13, 1)
- puppetSprite(14, 1)
- puppetSprite(15, 1)
- puppetSprite(16, 1)
- if gFragment1 = 1 then
- set the castNum of sprite 13 to gFragmentCast
- set the ink of sprite 13 to 39
- end if
- if gFragment2 = 1 then
- set the castNum of sprite 14 to gFragmentCast + 1
- set the ink of sprite 14 to 39
- end if
- if gFragment3 = 1 then
- set the castNum of sprite 15 to gFragmentCast + 2
- set the ink of sprite 15 to 39
- end if
- if gFragment4 = 1 then
- set the castNum of sprite 16 to gFragmentCast + 3
- set the ink of sprite 16 to 39
- end if
- updateStage()
- set the volume of sound 2 to gBackgroundVolume
- if soundBusy(2) = 0 then
- sound playFile 2, getpn() & "Sounds:Bckgrd" & gBackgroundSound & ".aif"
- end if
- end
-
- on exitFrame
- go(marker(0) + 2)
- end
-